package me.xplabs.fight.layer 
{
	import flash.display.BitmapData;
	import me.xplabs.engine.display.BaseDisplay;
	import me.xplabs.engine.display.BaseDisplayContainer;
	
	/**
	 * 背景层
	 * ...
	 * @author xiaohan
	 */
	public class BackgroundLayer extends BaseDisplayContainer 
	{
		private var _background:BaseDisplay;
		public function BackgroundLayer() 
		{
			super();
			
			_background = new BaseDisplay();
			addChild(_background);
			_background.mouseEnable = false;
			mouseChild = false;
		}
		public function setBackground(bitmap:BitmapData):void 
		{
			_background.data = bitmap;
			_background.x = _background.y = 0;
			_background.width = bitmap.width;
			_background.height = bitmap.height;
		}
	}
}